package com.example.listen;

import org.flowable.engine.TaskService;
import org.flowable.engine.delegate.TaskListener;
import org.flowable.task.service.delegate.DelegateTask;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @Author: fumin
 * @Description:
 * @Date: Create in 2019/5/20 9:40
 */
public class ManagerTaskHandler implements TaskListener {

    @Autowired
    private TaskService taskService;
    @Override
    public void notify(DelegateTask delegateTask) {


        delegateTask.setAssignee("经理");
        System.out.println("执行经理监听器——————————————————————");
    }
}
